package com.gimi.test_jpa.com.gimi.jpa.login;

import com.gimi.test_jpa.com.gimi.entity.login.Resources;
import com.gimi.test_jpa.com.gimi.entity.login.Role;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.query.Param;

import java.util.List;

public interface ResourceJap extends JpaRepository<Resources,String> {
    public List<Resources> findByRoleId(@Param("roleId") String roleId);
}
